//
//  UIImageView+WDExtention.h
//  MyDemos
//
//  Created by iMac on 2018/3/14.
//  Copyright © 2018年 iMac. All rights reserved.
//

#import <UIKit/UIKit.h>


#define ImageView() [[UIImageView alloc] init]
@interface UIImageView (WDExtention)

@property (nonatomic, copy) void(^tapCallback)(UIImageView *);

/// set image name nomal
- (UIImageView *(^)(NSString *))sImage;

/// set image name highlighted
- (UIImageView *(^)(NSString *))sImageHighlighted;

/// set highlighted
- (UIImageView *(^)(BOOL))sHightlighted;

/// set frame
- (UIImageView *(^)(CGRect))sFrame;

/// tap gesture
- (void)tap:(void(^)(UIImageView *view))tapCallback;

@end
